package com.lanjiu.lib.imclient.dto.extra;

import com.lanjiu.lib.imclient.dto.base.Dto;
import com.ljkj.cordial.chat.dao.ChatTableBean;

/**
 * @description:
 * @author: Panwei
 * @date: 2020/1/11 19:35
 */
public class UserChatTable extends Dto {
    public static final int RECEIVE_FROM_ACTIVITY = 0;//页面返回消息
    public static final int RECEIVE_FROM_NET = 1;//网络接收消息
    private ChatTableBean ctb;
    private String targetId;
    private String targetName;
    private String targetAlias;
    private int chatType;
    private boolean isStartReadFinish;
    private int msgType;
    private String text;
    private long time;
    private boolean isTaskDestory;
    private int receiveType;

    public int getReceiveType() {
        return receiveType;
    }

    public void setReceiveType(int receiveType) {
        this.receiveType = receiveType;
    }

    public void setTaskDestory(boolean taskDestory) {
        isTaskDestory = taskDestory;
    }

    public boolean isTaskDestory() {
        return isTaskDestory;
    }

    public boolean isStartReadFinish() {
        return isStartReadFinish;
    }

    public int getMsgType() {
        return msgType;
    }

    public String getText() {
        return text;
    }

    public long getTime() {
        return time;
    }

    public UserChatTable(String targetId, String targetName, int chatType, boolean isStartReadFinish, int msgType, String text, long time) {
        this.targetId = targetId;
        this.targetName = targetName;
        this.chatType = chatType;
        this.isStartReadFinish = isStartReadFinish;
        this.msgType = msgType;
        this.text = text;
        this.time = time;
    }

    public UserChatTable(ChatTableBean ctb, String targetId, String targetName, int chatType) {
        this.ctb = ctb;
        this.targetId = targetId;
        this.targetName = targetName;
        this.chatType = chatType;
    }

    public UserChatTable(ChatTableBean ctb, String targetId, int chatType) {
        this.ctb = ctb;
        this.targetId = targetId;
        this.chatType = chatType;
    }

    public ChatTableBean getCtb() {
        return ctb;
    }

    public String getTargetId() {
        return targetId;
    }

    public String getTargetName() {
        return targetName;
    }

    public int getChatType() {
        return chatType;
    }

    public String getTargetAlias() {
        return targetAlias;
    }

    public void setTargetAlias(String targetAlias) {
        this.targetAlias = targetAlias;
    }

    @Deprecated
    @Override
    public Object toProtobuf() {
        return null;
    }
}
